package com.wtwd.device.dao;

import com.wtwd.device.model.entity.BloodOxygenRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author mjy
 * @date 2021/09/06
 * @description
 */
@Mapper
public interface BloodOxygenRecordMapper {
    List<BloodOxygenRecord> getDaysBloodOxygenRecordList(@Param("deviceId") Long deviceId, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<BloodOxygenRecord> getMonthBloodOxygenRecordList(@Param("deviceId") Long deviceId, @Param("month") String month);

    BloodOxygenRecord getBloodOxygenRecordByDeviceIdAndTime(@Param("deviceId") Long deviceId,@Param("time") String time);

    Integer addBloodOxygenRecord(BloodOxygenRecord bloodOxygenRecord);

    Integer clearBloodOxygenRecordByDate(@Param("date") String date);

    Integer deleteBloodOxygenRecordByDeviceId(@Param("id") Long id);
}
